Skip to main content

Update Counterparty Group

PUT /api/v1/Counterparties/groups

Description

This endpoint is used to update an existing counterparty group.

Headers:

  • None

ApiKey:

  • No API key required

Content-Type:

  • text/plain

  • application/json

  • text/json

Path Parameters:

  • version: string, required

Request Body:

  • An UpdateCounterpartyGroupRequest object containing the group details.

URL:

  • PUT: {{baseUrl API url}}/api/v1/Counterparties/groups

Response:

  • A CounterpartyGroupResponse object containing the updated group details.

Error Codes:

  • 400: Bad Request

  • 404: Resource not found

  • 500: Internal server error

Example:

Request:

PUT /api/v1/Counterparties/groups
Content-Type: application/json
{
"id": "0987654321",
"name": "Updated Group A",
"description": "This is an updated group for Counterparties"
}

Response:

HTTP/1.1 200 OK
{
"id": "0987654321",
"name": "Updated Group A",
"description": "This is an updated group for Counterparties"
}

Method: PUT

/api/v1/Counterparties/groups

Headers

Content-TypeValue
Content-Typeapplication/json

Headers

Content-TypeValue
Accepttext/plain

Body (raw)

{
"id": "<uuid>",
"name": "<string>"
}

Response: 200

{
"succeeded": "<boolean>",
"message": "<string>",
"errors": [
"<string>",
"<string>"
],
"data": {
"name": "<string>",
"merchantId": "<uuid>",
"id": "<uuid>"
}
}

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request PUT \ 
--url /api/v1/Counterparties/groups \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


Click Try It! to start a request and see the response here!